package rhc.singleNodeSpider.spider;

import rhc.spider.crawler.Crawler;

/**单节点爬虫
 * @author rhc
 *
 */
public interface SingleNodeSpider {

	
	
	/**设置爬虫
	 * @param crawler
	 */
	void setCrawler(Crawler crawler);
	
	/**运行
	 * @throws Exception
	 */
	void run() throws Exception;
	
	/**停止
	 * @throws Exception
	 */
	void stop() throws Exception;
	
	/**暂停
	 * @throws Exception
	 */
	void pause() throws Exception;
	
	/**恢复
	 * @throws Exception
	 */
	void regain() throws Exception;
	
}
